package com.upcontrol.uartagent.constant;

/**
 * Created by Administrator on 2017/2/9 0009.
 */

public class UartCmdType {
    public class RecFromUart {
        public static final byte REF_ACK = (byte) 0x00;

        public static final byte SRC_SLAVE = (byte) 0x21;

        public static final byte WAKEUP = (byte) 0x80;

        public static final byte SENSOR_TOUCH = (byte) 0x81;

        public static final byte SENSOR_TEMPERATURE_HUMIDITY = (byte) 0x82;

        public static final byte SENSOR_COMBUSTIBLE_GAS = (byte) 0x83;

        public static final byte SENSOR_PM2_5 = (byte) 0x84;

        public static final byte SENSOR_POWER = (byte) 0x85;

        public static final byte SNOWBOT_UPBODY_SN = (byte) 0x86;

        public static final byte SNOWBOT_DOWNBODY_SN = (byte) 0xA0;

        public static final byte MICSTART = (byte) 0x87;

        public static final byte MICSTOP = (byte) 0x88;

        public static final byte SNOWBOTOFF = (byte) 0x89;

        public static final byte FAULT = (byte) 0xFF;

        public static final byte UPBODY_SELF_CHECK = (byte) 0X8A;
        public static final byte DOWNBODY_SELF_CHECK = (byte) 0XA1;

        //0xA9 获取电机速度数据
        public static final byte RESP_MOTOR_SPEED = (byte) 0xA9;

    }

    public class SendToUart {
        public static final byte ARM_RIGHT = (byte) 0x02;

        public static final byte ARM_LEFT = (byte) 0x03;

        public static final byte ARM_DOUBLE = (byte) 0x04;

        public static final byte SNOWBOT_OFF = (byte) 0x05;

        public static final byte SENSOR_OPEN = (byte) 0x07;

        public static final byte SENSOR_OFF = (byte) 0x08;

        public static final byte REQUESTDATA_SEND = (byte) 0x09;

        public static final byte SNOWBOT_UPBODY_SN = (byte) 0x0B;
        public static final byte SNOWBOT_DOWNBODY_SN = (byte) 0x10;

        public static final byte UPBODY_SELF_CHECK = (byte) 0X0D;
        public static final byte DOWNBODY_SELF_CHECK = (byte) 0X11;

        public static final byte SENSOR_TYPE_TEMPERATURE_HUMIDITY = 0x02;
        public static final byte SENSOR_TYPE_COMBUSTIBLE_GAS = 0x03;
        public static final byte SENSOR_TYPE_PM25 = 0x04;
        public static final byte SENSOR_POWER = 0x05;

        // 0x19 获取电机速度数据
        public static final byte REQ_GET_MOTOR_SPEED = (byte) 0x19;
    }

}
